...you totally ignored the inconvenient fact that your god advocates slavery.
I did not ignore the fact. I asked you to give me an example of immoral codes of God's law and you said slavery. I then asked you to explain how you knew slavery is wrong? Instead of answering me, you ask me to just accept it and answer the question. But by doing that you put the burden on me to explain an evil we haven't agreed was evil. It's an old debate trick and I can spot it a mile off. Besides, trying to discuss anything with you is very difficult because you're sloppy in your statements, which take only a moment to make but considerable time tip answer. It's clear you're getting this stuff off a website because I hear other atheists make the same points...unless you get your History doctorates from the same university.
It's a fact that the moral concepts of the ancient Hebrews were light years ahead of any of their neighbors (compare them to your Canaanite friends, for example). That law did not tolerate the mistreatment of any bonded servant or slave, and it commanded Israel to take in their servants and make them better people and eventually part of your family. You can check it out here.
It would have been within God's laws to torture a slave to death. So long as the death doesn't immediately follow the beatings. Agonisng prolonged deaths of beaten and tortured slaves are sanctioned by your almighty God.
Not so. Deliberately torturing a slave to death would be against the entire tone and tint of God's law, which was based on compassion, brotherhood and betterment. Why critics can't maintain even a modicum of objectivity and comment on the Mosaic codes in the context of the times, place and culture of the people is beyond me. Many of those codes are far superior to anything man has developed, and I'm an admirer of Greek law and culture as well as Roman civil law, as well as the civil teachings of Ma'at, previously discussed. But how did man develop these things and know instinctively that they were "good"? Or that some things were "evil"?
Many of the American founders knew enough of what to incorporate into our civil law to promote freedom and ensure domestic tranquility, and it's a fine balance. They knew slavery was wrong, but they laid the groundwork for a system of government that would transcend the practice. But it requires a balance. At the end of World War II, General MacArthur refused to be an active force in developing the New Japanese constitution. He gave them copies of other codes and constitutions and told them to write theirs. The only stipulation he made is that they had to guarantee the equal rights of women. He introduced the concepts of labor unions and free trade without the adversarial components, and it all turned Japan around and made it the foremost industrial power in the Far East.
But despite man knowing good from evil, there are plenty of times they deliberately chose evil to get power or gain. Whether it's abortion or the burning of infants (which the Canaanites delighted in), the question of good versus evil was viewed more subjectively. The fact remains, the Hebrews and their laws were far above any of the other peoples of their day.